JMMenuSelected
Dispatch a menu event to an AWT context.
OSStatus JMMenuSelected ( JMAWTContextRef context, MenuHandle hMenu, short menuItem);
context
- The AWT context that owns the menu.
hMenu
- The menu handle that was selected.
menuItem
- The item that was selected.
- function result
- A result code. See "JManager Result Codes" (page 69) for a list of result codes that JManager may return in this field.
DISCUSSION
You can use the Mac OS Toolbox functionGetMenuHandle
to get the appropriate value ofhMenu
to pass.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help